package com.acme.task2;

public class Foo {
	static final String FRMT_FINALIZE = "Finalize called for object <%d>";
	int iterationNumber;
	
	public Foo(int i) {
		iterationNumber = i;
	}
	@Override
	protected void finalize() throws Throwable {
		System.out.println(String.format(FRMT_FINALIZE, iterationNumber));
		super.finalize();
	}
}
